package com.geek.javase.ch15.work.banksync;

/*
 *@author wangpeng
 *2025/10/31 20:19
 *@description TODO
 */
//测试类
public class Test {

    public static void main(String[] args) {
        //共同资源
        Account account = new Account("建行" , 5000.0);
        DepositThread deposit = new DepositThread(account);
        WithdrawThread withdraw = new WithdrawThread(account);

        new Thread(deposit , "粑粑").start();

        new Thread(deposit , "麻麻").start();

        new Thread(withdraw , "哥哥").start();

        new Thread(withdraw , "妹妹").start();

    }

}
